package pub.zhouhui.ch1.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by shane on 16-11-5.
 */
// 使用@Service注解声明当前UseFunctionService类是Spring管理的一个Bean。
@Service
public class UseFunctionService {
    @Autowired
    FunctionService functionService;
    public String SayHello(String word){
        return functionService.sayHello(word);
    }
}
